package com.liang.serviceImpl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.liang.dao.CarItemDao;
import com.liang.pojo.CarItem;
import com.liang.pojo.Gorillaceo;
import com.liang.service.CarItemService;

@Service
public class CarItemServiceImpl implements CarItemService{
	@Autowired
	CarItemDao carItemDao;

	public int insertCarItem(Map<String, Object> map) {
		return carItemDao.insertCarItem(map);
	}

	public int deleteCarItem(Gorillaceo gorillaceo) {
		return carItemDao.deleteCarItem(gorillaceo);
	}

	public int updateCarItem(Map<String, Object> map) {
		return carItemDao.updateCarItem(map);
	}

	public CarItem selectCarItemBysid(int id,int uid) {
		return carItemDao.selectCarItemBysid(id, uid);
	}

	public List<CarItem> selectAllCarItemByUid(int id) {
		return carItemDao.selectAllCarItemByUid(id);
	}
	
}
